package com.xiami.mapper;

import com.xiami.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/*
创建者:虾米糖
*/
@Mapper
public interface UserMapper {
    @Select("select * from users where id = #{id}")
    User getUser(Integer id);
@Insert("insert into users(name,email) values(#{name},#{email})")
    void adduser(User user);
}
